﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WWNotice.constant
{
    public class HttpServiceApi
    {
        public static ServiceEnum serviceEnum = ServiceEnum.init;

        /// <summary>
        /// 微信通知url
        /// </summary>
        public static string WECHAT_NOTICE_URL = "http://47.103.156.254:888/wechatnews/wechatmessagepush";

        /**
         * 获取实时数据访问
         */
        public static string REAL_TIME_VISIT_DATA = "https://sycm.taobao.com/ipoll/live/visitor/getRtVisitor.json?_=1577025426972&device=2&limit=20&page=";
        #region 推送服务器数据
        /**
         * 实时访问数据录入
         */
        public static string REAL_TIME_VISIT_DATA_IMPORT = "http://47.103.156.254:888/prodcutVistorData/prodcutVistor";
        //用户评价
        public static string USER_ASSESS = "http://47.103.156.254:888/userEvaluationManagementData/userEvaluationManagement";
        //手淘首页点击分布
        public static string PHONE_HOME_CLICK = "http://47.103.156.254:888/homepageClickScatterData/homepageClickScatter";
        //订单数据推送mongo
        public static string ORDER_DETAIL = "http://47.103.156.254:888/orderManagementData/orderManagement";
        //代发货订单数据推送
        public static string NO_DELIVER = "http://47.103.156.254:888/orderManagementData/unshippedorderManagement";
        //订单数据导入mysql
        public static string ORDER_DATA = "http://mmhf.sjunjie.cn:888/mmhf/external/pc/dliverGoods";
        #endregion

        #region 淘宝获取数据
        /**
         * 用户评价管理
         */
        public static string TAOBAO_USER_ASSESS = "https://rate.taobao.com/sellercenter/sellerCenterList.htm?mainType=rateComplaint&subType=all&_tb_token_=VpA4B5kbSBkHcW68BL1R&current=1&pageSize=20&pureData=true";


        #region 问大家访问淘宝链接
        //补水套盒
        public static string WENDAJIA_527714047728 = "https://h5api.m.taobao.com/h5/mtop.taobao.social.feed.aggregate/1.0/?jsv=2.4.1&appKey=12574478&t=1578033346387&sign=507ec5fce9772ce4899eec39436c7a79&api=mtop.taobao.social.feed.aggregate&v=1.0&ecode=0&timeout=300000&timer=300000&AntiCreep=true&type=jsonp&dataType=jsonp&callback=mtopjsonp1&data=%7B%22cursor%22%3A%221%22%2C%22pageNum%22%3A%221%22%2C%22pageId%22%3A24501%2C%22env%22%3A1%2C%22bizVersion%22%3A0%2C%22params%22%3A%22%7B%5C%22refId%5C%22%3A%5C%22527714047728%5C%22%2C%5C%22namespace%5C%22%3A1%2C%5C%22pageNum%5C%22%3A1%2C%5C%22pageSize%5C%22%3A10%7D%22%7D";
        //抗皱套盒
        public static string WENDAJIA_548852040038 = "https://h5api.m.taobao.com/h5/mtop.taobao.social.feed.aggregate/1.0/?jsv=2.4.1&appKey=12574478&t=1578033665944&sign=b1897c4426869cecea05a5dd5d5c61ce&api=mtop.taobao.social.feed.aggregate&v=1.0&ecode=0&timeout=300000&timer=300000&AntiCreep=true&type=jsonp&dataType=jsonp&callback=mtopjsonp1&data=%7B%22cursor%22%3A%221%22%2C%22pageNum%22%3A%221%22%2C%22pageId%22%3A24501%2C%22env%22%3A1%2C%22bizVersion%22%3A0%2C%22params%22%3A%22%7B%5C%22refId%5C%22%3A%5C%22548852040038%5C%22%2C%5C%22namespace%5C%22%3A1%2C%5C%22pageNum%5C%22%3A1%2C%5C%22pageSize%5C%22%3A10%7D%22%7D";
        #endregion
        //手淘首页点击分布
        public static string TAOBAO_PHONE_HOME_CLICK = "https://sycm.taobao.com/flow/v2/decorate/wl/getPageDetailData.json?appType=20&dateRange={0}%7C{1}&dateType=day&pageId=15023340&pageType=shop%2Findex&spmb=shop%2Findex_1137983040_15023340&type=all&_=1578058056694&token=95b0ba190";
        //未发货
        public static string TAOBAO_NO_DELIVER = "https://fahuo.cainiao.com/consigns/normal/order/queryV2.do?sortBy=max_sort_time&sortType=asc&pageSize=50&pageTab=4&currentPage=1&hasBuyerMemo=false&hasUserMemo=false&ggService=false&userFlag=-1&lock=false&applyRefund=false&tradeClose=false&startTradeCreateTime={0}%2000%3A00%3A00&endTradeCreateTime={1}%2023%3A59%3A59&receiveDivisionIds=";
        //已发货
        public static string TAOBAO_DELIVER = "https://fahuo.cainiao.com/consigns/normal/order/queryV2.do?sortBy=max_sort_time&sortType=asc&pageSize=50&pageTab=7&currentPage=1&hasBuyerMemo=false&hasUserMemo=false&ggService=false&userFlag=-1&lock=false&applyRefund=false&tradeClose=false&startTradeCreateTime={0}%2000%3A00%3A00&endTradeCreateTime={1}%2023%3A59%3A59&receiveDivisionIds=";
        //物流消息
        public static string TAOBAO_WULIU = "https://fahuo.cainiao.com/consigns/normal/logisticsdetail/query.do?request=%5B%7B%22mailNo%22%3A%22{0}%22%2C%22cpCode%22%3A%22{1}%22%7D%5D";
        #endregion
    }


    public enum ServiceEnum
    {
        init, realTimeVisitData, userAssess,
        phoneHomeClick, noDeliver,deliver
    }

}
